import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);
const store = new Vuex.Store({
    state:{
        now_city_name:'',
        now_city_postion:{},
        user_info:{},
    },
    mutations:{
        changeCity(state,city_name){
            state.now_city_name = city_name;
        },
        autoPosition(state,postion){
            state.now_city_postion = postion;
        },
        setUserInfo(state,obj){
            state.user_info = obj;
        }
    },
    actions:{

    }
});

export default store;
